﻿<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:Avanade="urn:Avanade" xmlns:rs='urn:schemas-microsoft-com:rowset' xmlns:z='#RowsetSchema'>
  <xsl:template match="/">
    <input type="hidden" name="selectedButton" value="" />
    <!-- Photo et chapeau -->
	<table width="100%" border="0" cellspacing="0" cellpadding="0" summary="Webpart ANNONCE">
	  <tr>
		<td style="padding:10px">
		  <xsl:for-each select="xml/rs:data/z:row">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
			  <tr>
				<td>
				  <br/>
				  <div style="clear:both;vertical-align:top">
					<xsl:if test="normalize-space(translate(current()/@ows_Photo, ',', '')) != ''">
					  <div style="float:left;padding-right:10px">
						<img style="border: solid 1px #fce4ee;">
						  <xsl:attribute name="src">
							<xsl:value-of select="Avanade:FormatLink(current()/@ows_Photo)" />
						  </xsl:attribute>
						</img>
					  </div>
					</xsl:if>
					  <div>
						<xsl:value-of select="Avanade:FormatBody(current()/@ows_Chapeau)" />
					  </div>
				  </div>
				</td>
			  </tr>
			  <tr>
				<td style="height:1px;background-color:#fce4ee;"></td>
			  </tr>
			</table>
		  </xsl:for-each>
		</td>
	  </tr>
	  <xsl:if test="normalize-space(//NewFormURL) != ''">
		<tr>
		  <td class="ms-addnew">
			<![CDATA[<img alt="" src="_layouts/images/rect.gif" />&nbsp;<a class="ms-addnew" href="]]><xsl:value-of select="//NewFormURL" /><![CDATA[">Ajouter une nouvelle annonce</a>]]>
		  </td>
		</tr>
	  </xsl:if>
	</table>
  </xsl:template>
</xsl:stylesheet>